<div class="container">

    <div>
        <?    

            switch ($post_action) {
                
                case 'NEW':
                    /** module run pagesd edit_page **/
                    echo modules::run('pages/view_new',array('link'=>'posts'));
                    break;
                    
                case 'EDIT':
                    /** module run pagesd edit_page **/
                    echo modules::run('pages/view_edit',array('link'=>'posts'));
                    break;
            }

        ?>
    </div>

</div>